package fr.umlv.ig.event;


import fr.umlv.ig.model.MetroModel;

public class MetroDataLineEvent {
	
	private final MetroModel model;
	private final int type;
	
	
	public static final int INTERVAL_CHANGE = 1;
	public static final int INTERVAL_ADDED = 1;
	
	
	public MetroDataLineEvent(MetroModel model, int type) {
		this.model = model;
		if(type != INTERVAL_CHANGE || type!=INTERVAL_ADDED) {
			throw new IllegalArgumentException("the type doesn't exist");
		}
		this.type = type;
	}


	public MetroModel getModel() {
		return model;
	}


	public int getType() {
		return type;
	}
}
